import request from '@/utils/request'

export function fetchList(data = {}) {
  return request({
    url: '/chkOrder/findByPage',
    method: 'post',
    params: data
  })
}

export function findChkOrderCosts(data = {}) {
  return request({
    url: '/chkOrder/findChkOrderCosts',
    method: 'post',
    params: data
  })
}

export function fetchDetail(data = {}) {
  return request({
    url: '/chkOrder/detail',
    method: 'post',
    params: data
  })
}

export function getAuditOrders(data = {}) {
  return request({
    url: '/chkOrder/getAuditOrders',
    method: 'post',
    params: data
  })
}

export function auditRes(data = {}) {
  return request({
    url: '/chkOrder/auditRes',
    method: 'post',
    params: data
  })
}

export function chkCostStatistics(data = {}) {
  return request({
    url: '/chkOrder/chkCostStatistics',
    method: 'post',
    params: data
  })
}

export function getReadies(data = {}) {
  return request({
    url: '/chkOrder/getReadies',
    method: 'post',
    params: data
  })
}

export function getReadieDetail(data = {}) {
  return request({
    url: '/chkOrder/getReadieDetail',
    method: 'post',
    params: data
  })
}

// 新增
export function addOrderReady(data = {}) {
  return request({
    url: '/chkOrder/addOrderReady',
    method: 'post',
    params: data
  })
}

// 删除
export function delOrderReady(data = {}) {
  return request({
    url: '/chkOrder/delOrderReady',
    method: 'post',
    params: data
  })
}

// 更新
export function updateOrderReady(data = {}) {
  return request({
    url: '/chkOrder/updateOrderReady',
    method: 'post',
    params: data
  })
}

// 货主单位代码
export function getOwner(data = {}) {
  return request({
    url: '/chkOrder/getOwner',
    method: 'post',
    params: data
  })
}



